import {createRequest, createSilentRequest} from "@/service/request/request"
import {baseUrl} from "./config"
import type {HttpRequestConfig} from "luch-request"

const config: HttpRequestConfig = {
    baseURL: baseUrl,
    timeout: 15000,//超时时长
}

// 默认请求
export const request = createRequest(config)

// 静默请求
export const silentRequest = createSilentRequest(config)